package com.wyg.observer;

/**
 * @description:
 * @author: WYG
 * @time: 2021/4/27 10:01
 */

public class DigitalObservers implements Observer {

    @Override
    public void update(NumberGenerator generator) {
        System.out.println("DigitalObservers: " + generator.getNumber());
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
